﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="InstructorLectureNotesMainScreen.aspx.cs" Inherits="METU_CMT.InstructorLectureNotesMainScreen" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:Table ID="Table1" runat="server" Width="50%" HorizontalAlign="Center" CssClass="chp-grid">
        <asp:TableRow ID="TableRow1" runat="server">
            <asp:TableCell ID="TableCell4" runat="server">
                <asp:GridView runat="server" Width="90%" ID="dtgLectureNotes" AutoGenerateColumns="false" OnRowDeleting="OnDtgLectureNotesRowDeleting"
                    ShowHeaderWhenEmpty="true">
                    <Columns>
                        <asp:TemplateField HeaderText="File Name">
                            <ItemTemplate>
                                <asp:LinkButton runat="server" ID="lnkBtnNoteName" OnClick="OnLnkBtnNoteNameClicked"
                                    Text='<%# Bind("Name") %>'></asp:LinkButton>
                                <asp:HiddenField runat="server" ID="hfId" Value='<%# Bind("NoteId") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Action">
                            <ItemTemplate>
                                <asp:LinkButton runat="server" ID="lnkBtnDelete" Text="Delete" CommandName="Delete"></asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
                <br />
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow ID="TableRow2" runat="server">
            <asp:TableCell ID="TableCell1" runat="server">
                <asp:FileUpload runat="server" ID="fuNewSchedule" CssClass="chp-file-upload" />
                <br />
            </asp:TableCell>
        </asp:TableRow>
        <asp:TableRow ID="TableRow3" runat="server">
            <asp:TableCell ID="TableCell2" runat="server">
                <asp:Button runat="server" ID="btnAdd" OnClick="OnBtnAddClicked" Text="Add" CssClass="chp-button-red" />
                <br />
            </asp:TableCell>
        </asp:TableRow>
    </asp:Table>
</asp:Content>
